package com.test.spring.aop.annotation;

import org.springframework.stereotype.Component;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/27 16:21
 */
@Component("arithmeticCalculator")
public class ArithmeticCalculatorImpl implements ArithmeticCalculator {
    @Override
    public int add(int i, int j) {
        return i + j;
    }

    @Override
    public int sub(int i, int j) {
        return i - j;
    }

    @Override
    public int mul(int i, int j) {
        return i * j;
    }

    @Override
    public int div(int i, int j) {
        return i / j;
    }
}
